package com.android.bookgarden.views;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;

import com.android.bookgarden.R;


public class BaseDialog extends Dialog {
    private View view;
    private String title;
    private String updateStr;

    public BaseDialog(Context context) {
        super(context);
    }

    public BaseDialog(Context context, View v) {
        super(context, R.style.CircleDialog);
        this.view = v;
    }

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.setContentView(this.view);
        this.setCancelable(false);
        this.setCanceledOnTouchOutside(false);
    }

    public void showDialog() {
        this.show();
    }

    public interface DialogCallBack {
        void isUpdate();
    }
}
